package com.urbane.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * API 网关启动类
 * 作用：作为整个电商系统的唯一入口，负责请求跨域、路由、认证、限流、日志等
 *
 * @author urbane-team
 * @since 2025/5/23
 */
@EnableDiscoveryClient // 启用 Nacos 服务发现（注册为 api-gateway）
@SpringBootApplication
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
        System.out.println("✅ api-gateway 启动成功，监听端口：8080");
    }
}
